package com.nerve.secondhandcar.domain.car;

import javax.persistence.FetchType;
import javax.persistence.MappedSuperclass;
import javax.persistence.OneToOne;

import org.ko.core.domain.support.BaseEntity;

import com.nerve.secondhandcar.domain.Car;

/**
 * @project: secondHandCarPlatform
 * @file: CarChild.java
 * @package: com.nerve.secondhandcar.domain.car
 * @description:
 *	汽车相关实体的父类
 * @author: 集成显卡	1053214511@qq.com
				IBM GDC, zengxm@cn.ibm.com
 * @date&time: 2014-10-9
 * @change log:
 */
@SuppressWarnings("serial")
@MappedSuperclass
public class CarChild extends BaseEntity{
	
	private Car car;

	@OneToOne(mappedBy="configure", fetch=FetchType.EAGER)
	public Car getCar() {
		return car;
	}

	public void setCar(Car car) {
		this.car = car;
	}
}